package com.ztao.service.impl;

import com.ztao.ArticleApplication;
import com.ztao.service.HotArticleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest(classes = ArticleApplication.class)
//@RunWith(StringRunner.class)
public class HotArticleServiceImplTest {

    @Resource
    private HotArticleService hotArticleService;

    @Test
    public void computeHotArticle() {
        hotArticleService.computeHotArticle();
    }
}